/*
 * $Id: ObjectTextModelType.java 136 2009-07-16 07:53:43Z donbeave $
 */

package labour.concept.client.data;

import com.extjs.gxt.ui.client.data.DataField;
import com.extjs.gxt.ui.client.data.ModelType;

public class ObjectTextModelType extends ModelType {

  public ObjectTextModelType() {
    setRoot("texts");
    setTotalName("totalCount");

    addFields();
  }

  protected void addFields() {
    addField(ObjectTextModel.LOCALE_ID);

    addField(ObjectTextModel.OBJECT_ID);

    DataField field = new DataField(ObjectTextModel.IS_PUBLISHED);
    field.setType(Boolean.class);
    addField(field);

    addField(ObjectTextModel.NAME);

    addField(ObjectTextModel.OBJECT_UID);
  }

}
